package com.ssm.subject.infra.basic.mapper;

import com.ssm.subject.infra.basic.entity.SubjectJudge;

import java.util.List;


/**
 * 判断题(SubjectJudge)表数据库访问层
 *
 * @author makejava
 * @since 2024-11-29 10:24:45
 */
public interface SubjectJudgeDao {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SubjectJudge queryById(Long id);

    /**
     * 新增数据
     *
     * @param subjectJudge 实例对象
     * @return 影响行数
     */
    int insert(SubjectJudge subjectJudge);

    /**
     * 修改数据
     *
     * @param subjectJudge 实例对象
     * @return 影响行数
     */
    int update(SubjectJudge subjectJudge);

    /**
     * 查询
     * @param subjectJudge
     * @return
     */
    List<SubjectJudge> query(SubjectJudge subjectJudge);
}

